package com.kim.rssreader.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ImageView;

public class ImageViewForDialog extends ImageView {

	boolean onlyImageRespond = true;

	public ImageViewForDialog(Context context) {
		super(context);
	}

	public ImageViewForDialog(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public ImageViewForDialog(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public boolean dispatchTouchEvent(MotionEvent ev) {
		boolean ret = super.dispatchTouchEvent(ev);
		ret = onlyImageRespond;
		return ret;
	}

	@Override
	public boolean onTouchEvent(MotionEvent ev) {
		boolean ret = super.onTouchEvent(ev);
		return ret;
	}

	public boolean getOnlyImageRespond() {
		return onlyImageRespond;
	}

	public void setOnlyImageRespond(boolean onlyImageRespond) {
		this.onlyImageRespond = onlyImageRespond;
	}

}
